Source code for /engineering/webperf/slave-v4[j1.2]/HTTPIn.javaOriginal file HTTPIn.java
   1 import java.io.*;
   2 import java.net.*;
   3 import java.util.*;
   4 
   5 public class HTTPIn extends ConnectDaemon {
   6  
   7    HTTPDaemon httpd;
   8    CmdQueue	  cmdQueue;   
   9 
  10    public HTTPIn() {
  11 	super(true);
  12    }   
  13  
  14    public HTTPIn(boolean demon, CmdQueue c) {
  15       super(demon);
  16 	cmdQueue = c;
  17    }
  18 
  19    protected boolean initialize() {
  20       if (!super.initialize()) {
  21          return false;
  22       }  
  23       return true;
  24    }
  25 
  26    protected void handleConnection(Connection client) {     
  27 		HTTPCmdRead  hr = new HTTPCmdRead(client, cmdQueue);   
  28 		hr.start();
  29    }
  30 }